]> dgit.raspbian.org Git - gnome-shell.git/log
gnome-shell.git
7 years agoImport script from caribou source
Alan [Tue, 1 Aug 2017 10:34:27 +0000 (11:34 +0100)]
Import script from caribou source

7 years agobuild: Include test-theme in tests
Florian Müllner [Tue, 26 Feb 2019 00:58:44 +0000 (01:58 +0100)]
build: Include test-theme in tests

It's an existing test that doesn't require interaction, so there's
no reason why it shouldn't be run by `ninja test`.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/419

7 years agotest-theme: Change presumed CWD
Florian Müllner [Tue, 26 Feb 2019 00:57:01 +0000 (01:57 +0100)]
test-theme: Change presumed CWD

The executable is assumed to be run from $top_srcdir/src, which is
essentially an autotools left-over (it's where the program ended
up with srcdir == builddir).

Now with meson, its actual srcdir makes more senses.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/419

7 years agotest-theme: Force default resolution
Florian Müllner [Tue, 26 Feb 2019 01:13:43 +0000 (02:13 +0100)]
test-theme: Force default resolution

Clutter no longer hard-codes a resolution of 96 DPI (although that's
still the default), so any assertions of sizes for physical units
may be off.

Fix this by setting up the test environment according to the
assumptions.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/419

7 years agoshell-tray-manager: Silence gdk_window_set_background_pattern warning
Robert Mader [Mon, 4 Mar 2019 15:50:12 +0000 (16:50 +0100)]
shell-tray-manager: Silence gdk_window_set_background_pattern warning

Apparently we can't get rid of it without breaking backward compatibility.
So let's stick to how GTK handles it and just silence the warning.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/423

7 years agona-tray-child: Silence gdk_window_set_background_pattern warnings
Robert Mader [Mon, 4 Mar 2019 15:31:20 +0000 (16:31 +0100)]
na-tray-child: Silence gdk_window_set_background_pattern warnings

Apparently we can't get rid of them without breaking backward compatibility.
So let's stick to how GTK handles it and just silence the warnings.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/423

7 years agogtk-embed: Hide window actors from pick
Florian Müllner [Fri, 15 Feb 2019 16:04:10 +0000 (17:04 +0100)]
gtk-embed: Hide window actors from pick

Since we started to support tray icons on wayland, the icon we show
is not the actual XEmbed window. Instead, we let mutter create a
MetaWindow for it, then use its window actor as source for a clone
we (or nowadays: extensions) can add, remove and destroy freely.

To not let the real icon get in the way, we set an empty input shape
and make its window actor fully transparent. This works OK on X11,
but on wayland all events still go through Clutter, so any reactive
surface actor inside the window actor will block events for any actors
underneath (and status icons go into the top-windows group, so almost
all actors are affected).

Luckily we can pile another hack onto the pile of status icon hacks ...

https://gitlab.gnome.org/GNOME/gnome-shell/issues/191

7 years agoinputMethod: Handle OSK hiding after unfocus
Carlos Garnacho [Fri, 8 Feb 2019 22:00:18 +0000 (23:00 +0100)]
inputMethod: Handle OSK hiding after unfocus

Set a small timeout in order to let focus changes preserve OSK state. If
focus is eventually unset, the OSK will be hidden.

https://gitlab.gnome.org/GNOME/gtk/issues/1277
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/397

7 years agoshellDBus: Add UngrabAccelerators
Benjamin Berg [Sat, 2 Mar 2019 15:49:55 +0000 (16:49 +0100)]
shellDBus: Add UngrabAccelerators

While it is possible to register accelerators in-bulk, there is no
proper way to unregister them again. This adds the corresponding call
for UngrabAccelerator to allow ungrabbing multiple accelerators at the
same time.

The idea is that g-s-d can use this in the future to simplify the
keybinding reload logic.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/429

7 years agodnd: Only handle touch events in wayland
Andrea Azzarone [Mon, 4 Mar 2019 16:14:22 +0000 (16:14 +0000)]
dnd: Only handle touch events in wayland

There are serveral issues around touch passive grab and touch/pointer doubly
handling to use these on X11, so we stick to single-touch/pointer there.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/1015
7 years agoautomountManager: Fix playing disconnected sound
Florian Müllner [Mon, 4 Mar 2019 13:36:13 +0000 (14:36 +0100)]
automountManager: Fix playing disconnected sound

A typo sneaked in in commit 9a35c990 ...

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/432

7 years agoinhibitShortcuts: Save choice in permission store
Olivier Fourdan [Fri, 1 Feb 2019 16:44:05 +0000 (17:44 +0100)]
inhibitShortcuts: Save choice in permission store

Use the permission store to remember the user's decision as to whether
or not grant the shortcuts request when the application is known.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/382

7 years agoUpdated Lithuanian translation
Aurimas Černius [Sun, 3 Mar 2019 16:54:25 +0000 (18:54 +0200)]
Updated Lithuanian translation

7 years agoUpdate Latvian translation
Rūdolfs Mazurs [Sun, 3 Mar 2019 14:18:43 +0000 (14:18 +0000)]
Update Latvian translation

7 years agoUpdate Dutch translation
Nathan Follens [Sun, 3 Mar 2019 10:15:54 +0000 (10:15 +0000)]
Update Dutch translation

7 years agomessageTray: Add source policy setter
Florian Müllner [Sat, 2 Mar 2019 19:53:33 +0000 (20:53 +0100)]
messageTray: Add source policy setter

Commit 8f15193b4 changed the `policy` property from a regular JS property to
a getter. This was necessary to avoid calling an overridden _createPolicy()
method before a subclass is properly initialized, but it broke the second
way of using notification sources:

Don't create a Source subclass, but use the base class directly and change
its `policy` property.

There's no good reason why we should no longer allow this, so add a setter.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/431

7 years agoUpdated Vietnamese translation
Trần Ngọc Quân [Sun, 3 Mar 2019 06:48:55 +0000 (13:48 +0700)]
Updated Vietnamese translation

Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
7 years agowindowAttentionHandler: Don't destroy on open
Florian Müllner [Sat, 2 Mar 2019 20:15:03 +0000 (21:15 +0100)]
windowAttentionHandler: Don't destroy on open

The activateWindow() call is expected to focus the window, which
already destroys the source. If we then destroy it again explicitly,
we get another "invalid access" warning.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/430

7 years agonetwork: Don't destroy wireless dialog twice
Florian Müllner [Sat, 2 Mar 2019 19:46:28 +0000 (20:46 +0100)]
network: Don't destroy wireless dialog twice

The dialog doesn't change the `destroyOnClose` property from its default,
so it is already destroyed automatically on close. So if we also destroy
it explicitly, we end up (rightfully) with one of gjs' infamous "invalid
access" warnings.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/430

7 years agoUpdate German translation
Bernd Homuth [Sat, 2 Mar 2019 20:14:39 +0000 (20:14 +0000)]
Update German translation

7 years agoUpdate Romanian translation
Daniel Șerbănescu [Sat, 2 Mar 2019 19:55:56 +0000 (19:55 +0000)]
Update Romanian translation

7 years agoappsMenu: Fix initial visibility of "Details" item
Florian Müllner [Sun, 24 Feb 2019 01:21:56 +0000 (02:21 +0100)]
appsMenu: Fix initial visibility of "Details" item

It is only supposed to be visible when Software is installed, but
we currently only update the visibility on changes.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/989

7 years agosearch: Hide the separator line of the last result
verdre [Sat, 24 Nov 2018 23:45:19 +0000 (00:45 +0100)]
search: Hide the separator line of the last result

If a result is displayed at the end of the search results, there should
obviously not be a line separating it from the next result underneath
it. To fix this, always hide the separator for the last result visible.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/311

7 years agost: Only consider visible children for :first/:last-child
Florian Müllner [Tue, 27 Nov 2018 01:21:37 +0000 (02:21 +0100)]
st: Only consider visible children for :first/:last-child

While mapping the :first/:last-child pseudo classes directly to the
ClutterActor:first-child/:last-child properties allows for an easy
implementation, it is unexpected that rules can appear to not have
an effect because the selected child is hidden. GTK's behavior of
applying the classes to visible children makes much more sense, so
change our implementation to do the same.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/312

7 years agoplugin: Style consistency fix
Niels De Graef [Tue, 25 Dec 2018 14:43:48 +0000 (15:43 +0100)]
plugin: Style consistency fix

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/315

7 years agoplugin: Use G_DECLARE_FINAL_TYPE
Niels De Graef [Tue, 25 Dec 2018 14:42:47 +0000 (15:42 +0100)]
plugin: Use G_DECLARE_FINAL_TYPE

libmutter-4 added support for this, so we can also drop the boilerplate.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/315

7 years agoplugin: Move class_init and init below methods
Niels De Graef [Tue, 25 Dec 2018 14:40:36 +0000 (15:40 +0100)]
plugin: Move class_init and init below methods

This allows us to get rid of all the forward declarations, tidying up
the file a bit.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/315

7 years agoplugin: Add some comments on its purpose
Niels De Graef [Tue, 25 Dec 2018 14:40:10 +0000 (15:40 +0100)]
plugin: Add some comments on its purpose

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/315

7 years agoshell-screenshot: Apply monitor scale to cursor surface
Marco Trevisan (Treviño) [Wed, 13 Feb 2019 01:30:28 +0000 (02:30 +0100)]
shell-screenshot: Apply monitor scale to cursor surface

When we grab a screenshot of a framebuffer scaled shell, we shoudl apply the
device scale to the image surface, while the monitor scaling should be applied
to the cursor surface, so that it's painted at proper coordinates and in proper
size in the generated image.

This is not needed for XWayland clients as they are not scaled anyways, while
for wayland clients that are painted in multiple monitors, this might cause
a lower quality cursor in the lower dpi monitor, because the cursor sprite is
generated for the monitor scale, and not for the surface scale.

https://bugzilla.gnome.org/show_bug.cgi?id=765011
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5

7 years agoshell-screenshot: Always use "actors-painted" signal
Marco Trevisan (Treviño) [Wed, 13 Feb 2019 01:25:26 +0000 (02:25 +0100)]
shell-screenshot: Always use "actors-painted" signal

Since we don't care about all the stage to be painted here, we can just proceed
when all the actors have been put in place.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5

7 years agoshell-screenshot: Use mutter paint signals to optionally draw cursor
Marco Trevisan (Treviño) [Wed, 13 Feb 2019 01:23:41 +0000 (02:23 +0100)]
shell-screenshot: Use mutter paint signals to optionally draw cursor

Under wayland, if the cursor should be included when doing a fullscreen
screenshot, we can rely on mutter "paint" signal to have it composited for free.
Otherwise if it's not requested, we can use the "actors-painted" signal to get a
stage texture before the mouse overlay has been added.

Instead, under X11 or when only a window screenshot is requested, we still
need to draw it manually.

https://bugzilla.gnome.org/show_bug.cgi?id=765011
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5

7 years agoshell-screenshot: Add utility function to check when draw the cursor
Marco Trevisan (Treviño) [Wed, 13 Feb 2019 01:13:47 +0000 (02:13 +0100)]
shell-screenshot: Add utility function to check when draw the cursor

Don't repeat the same logic in multiple places, just set include_cursor to the
proper value once depending on the settings we have.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5

7 years agoshell-screenshot: Initialize cursor tracker in draw cursor function
Marco Trevisan (Treviño) [Wed, 13 Feb 2019 01:01:03 +0000 (02:01 +0100)]
shell-screenshot: Initialize cursor tracker in draw cursor function

Avoid code duplication, since we're using this only if the cursor has to be
painted differently.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5

7 years agoshell-util: Apply resource_scale on clipping when getting the meta texture image
Marco Trevisan (Treviño) [Thu, 8 Jun 2017 12:22:27 +0000 (14:22 +0200)]
shell-util: Apply resource_scale on clipping when getting the meta texture image

https://bugzilla.gnome.org/show_bug.cgi?id=765011
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5

7 years agoshell-recorder: Use clutter-computed sizes and scaling for the capture
Marco Trevisan (Treviño) [Sat, 23 Dec 2017 03:54:48 +0000 (04:54 +0100)]
shell-recorder: Use clutter-computed sizes and scaling for the capture

Get from clutter the capture sizes and scale and don't mind
about doing any rounding here, as it might be different
from the one done at clutter level (causing mismatch and
not-working videos). Delegate this to clutter, and forget
about the internal details.

These values are then used to composte the image and set the video caps.

https://bugzilla.gnome.org/show_bug.cgi?id=7650111

7 years agodateMenu: Relayout IndicatorPad when parent size changes
Marco Trevisan (Treviño) [Sat, 2 Sep 2017 02:04:22 +0000 (04:04 +0200)]
dateMenu: Relayout IndicatorPad when parent size changes

This happens often in resource-scaled world

https://bugzilla.gnome.org/show_bug.cgi?id=765011

7 years agobackground: Don't set background actor sizing and scaling
Marco Trevisan (Treviño) [Thu, 3 Aug 2017 13:52:06 +0000 (15:52 +0200)]
background: Don't set background actor sizing and scaling

Mutter BackgroundActor is able do detect this at lower level

https://bugzilla.gnome.org/show_bug.cgi?id=765011

7 years agolayout: Add scale property to Monitor
Marco Trevisan (Treviño) [Thu, 3 Aug 2017 13:51:42 +0000 (15:51 +0200)]
layout: Add scale property to Monitor

https://bugzilla.gnome.org/show_bug.cgi?id=765011

7 years agoanimation: Reload sliced texture on global scale change
Marco Trevisan (Treviño) [Wed, 27 Feb 2019 01:08:26 +0000 (02:08 +0100)]
animation: Reload sliced texture on global scale change

When the scale has changed we need to reload the texture at proper size.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5

7 years agoanimation: Load sliced image using resource scale, and reload on change
Marco Trevisan (Treviño) [Thu, 30 Nov 2017 01:36:05 +0000 (02:36 +0100)]
animation: Load sliced image using resource scale, and reload on change

Also make sure that the textures size is matching the container size.

https://bugzilla.gnome.org/show_bug.cgi?id=765011

7 years agologinDialog: Load logo file texture given resource scale
Marco Trevisan (Treviño) [Thu, 30 Nov 2017 01:34:42 +0000 (02:34 +0100)]
loginDialog: Load logo file texture given resource scale

And reload the logo if the resource scale changes.

https://bugzilla.gnome.org/show_bug.cgi?id=765011

7 years agost-texture-cache: Use GSlice to manage memory of leaders data
Marco Trevisan (Treviño) [Wed, 27 Feb 2019 02:48:43 +0000 (03:48 +0100)]
st-texture-cache: Use GSlice to manage memory of leaders data

This allows some memory optimizations when possible, so let's use it.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5

7 years agost-texture-cache: use StImageContent for cairo bound surface
Marco Trevisan (Treviño) [Fri, 1 Mar 2019 05:56:26 +0000 (06:56 +0100)]
st-texture-cache: use StImageContent for cairo bound surface

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5

7 years agost-texture-cache: Cancel sliced image loading on target actor destroy
Marco Trevisan (Treviño) [Thu, 30 Nov 2017 01:48:02 +0000 (02:48 +0100)]
st-texture-cache: Cancel sliced image loading on target actor destroy

It might happen that the target clutter actor that we return on call
of st_texture_cache_load_sliced_image might be destroyed while the
loading task is still running. To protect from this, let's connect
to "destroy" signal and when this happens we use a cancellable to
stop the task.

This allows to safely reuse the return value of this function to
cancel the execution and avoiding that load_callback is called
even for a request that is not anymore under our control.

https://bugzilla.gnome.org/show_bug.cgi?id=765011

7 years agost-texture-cache: Load sliced contents with REQUEST_CONTENTENT_SIZE
Marco Trevisan (Treviño) [Wed, 27 Feb 2019 02:31:19 +0000 (03:31 +0100)]
st-texture-cache: Load sliced contents with REQUEST_CONTENTENT_SIZE

When loading an actor for a sliced image actor, we can now use the
REQUEST_CONTENT_SIZE request-mode for the actor since we the content image
has now a predictable size and thus we can be sure that the size will be applied
taking care of the resource scale.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5

7 years agost-texture-cache: Set sliced actor size in logical size
Marco Trevisan (Treviño) [Mon, 25 Feb 2019 20:26:46 +0000 (21:26 +0100)]
st-texture-cache: Set sliced actor size in logical size

The actor size should be set in logical size more than in the actual size
of the texture when using resource scale.

https://bugzilla.gnome.org/show_bug.cgi?id=765011
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5

7 years agost-icon: Add resource-scale support
Jonas Ådahl [Thu, 11 May 2017 04:35:09 +0000 (06:35 +0200)]
st-icon: Add resource-scale support

This commit adds support for scaling the StIcon resource (the icon
texture) according to the resource scale.

https://bugzilla.gnome.org/show_bug.cgi?id=765011

7 years agost-texture-cache: Use StContentImage to create actor contents
Marco Trevisan (Treviño) [Wed, 27 Feb 2019 02:18:39 +0000 (03:18 +0100)]
st-texture-cache: Use StContentImage to create actor contents

This will allow to use resource-scale aware content that will use a preferred
size that takes in account the icon scaling and the resource scaling.

If no size is passed we should just divide the actual resource size by the
resource scale, as we assume that it's loaded with such scaling applied.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5
https://bugzilla.gnome.org/show_bug.cgi?id=765011

7 years agost-image-content: Wrap ClutterImage with explicit preferred size
Marco Trevisan (Treviño) [Tue, 26 Feb 2019 23:23:40 +0000 (00:23 +0100)]
st-image-content: Wrap ClutterImage with explicit preferred size

Create StImageContent as a simple ClutterImage with preferred width/height
properties in order to be able to use explicit sizing when creating clutter
contents that will be applied to actors whose size depends on the content itself.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5

7 years agost-texture-cache: Separate 'scale' to 'paint_scale' and 'resource_scale'
Marco Trevisan (Treviño) [Thu, 11 May 2017 04:25:00 +0000 (06:25 +0200)]
st-texture-cache: Separate 'scale' to 'paint_scale' and 'resource_scale'

Instead of just passing a scale when getting a cached icon, pass both a
'paint_scale', the scale of which the icon will be painted on the
stage, and a 'resource_scale', the scale of the resource used for
painting.

In effect, the texture size will use the scale 'paint_scale * resource_scale'
in a ceiled value while the size of the actor will use 'paint_scale' when
determining the size.
this would load a bigger texture, but the downscaling would keep the visual
quality.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5
https://bugzilla.gnome.org/show_bug.cgi?id=765011

7 years agost: Create shadow pipeline taking resource scale in account
Marco Trevisan (Treviño) [Mon, 25 Feb 2019 14:42:51 +0000 (15:42 +0100)]
st: Create shadow pipeline taking resource scale in account

The shadow pipeline is created doing software blurring of the texture so the
shadow spec blur parameter should be scaled accordingly with the texture scaling
otherwise we won't take enough pixels in account creating stronger shadows.

https://bugzilla.gnome.org/show_bug.cgi?id=765011
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5

7 years agost: Use scaled surfaces for creating cairo background shadows
Marco Trevisan (Treviño) [Mon, 25 Feb 2019 12:45:02 +0000 (13:45 +0100)]
st: Use scaled surfaces for creating cairo background shadows

Create the surfaces for background shadows at scaled sizes and then draw on them
using logical coordinates, by setting the surface device scale accordingly.

Use the said surface scale when generating the actual shadow cairo pattern
but in such case, to reduce the number of code changes, is better to work in
absolute coordinates, and to do so:
  1) Create a temporary shadow-spec copy with scaled values to absolute sizes
  2) Invert the scaling on the shadow matrix
  3) Do the actual painting in absolute coordinates
  4) Set the shadow matrix scaling back to the logical coordinates.

Finally scale down the created shadow pattern surface size when painting it,
applying again a reverse scale to the matrix.

https://bugzilla.gnome.org/show_bug.cgi?id=765011
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5

7 years agost-shadow: Define autoptr cleanup function for StShadow
Marco Trevisan (Treviño) [Mon, 25 Feb 2019 14:53:25 +0000 (15:53 +0100)]
st-shadow: Define autoptr cleanup function for StShadow

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5

7 years agost-theme-node: Paint elements in resource-scale scaled surfaces
Marco Trevisan (Treviño) [Sat, 28 Oct 2017 08:57:26 +0000 (10:57 +0200)]
st-theme-node: Paint elements in resource-scale scaled surfaces

Pass resource-scale to drawing phase, and use it to create texture
surfaces scaled with the widget current scaling.
Also redraw by default widgets when the resource scale changes.

https://bugzilla.gnome.org/show_bug.cgi?id=765011

7 years agost-shadow: Ceil size before comparing with texture
Jonas Ådahl [Thu, 26 Oct 2017 09:15:46 +0000 (11:15 +0200)]
st-shadow: Ceil size before comparing with texture

A fractional resource scale would mean we never use the fast path for
creating the shadow, because we'd cast the int to a float before
comparing, which would never match.

Instead compare the expected texture size with the source texture, to
actually potentially trigger the fast path.

https://bugzilla.gnome.org/show_bug.cgi?id=765011

7 years agost-scroll-view-fade: Include outer bound of pixel on border
Jonas Ådahl [Fri, 20 Oct 2017 04:10:58 +0000 (06:10 +0200)]
st-scroll-view-fade: Include outer bound of pixel on border

The fade shader will draw the fade effect up until the border pixel. If
we set the bottom right coordinate to the outer edge of the pixel we
might end up not drawing the fade effect on all of the pixels. This
could for example happen if one logical pixel (clutter stage pixel)
consists of more than one physical pixel.

https://bugzilla.gnome.org/show_bug.cgi?id=765011

7 years agost-label: Paint shadow using resource-scaled texture
Marco Trevisan (Treviño) [Sat, 2 Sep 2017 02:11:39 +0000 (04:11 +0200)]
st-label: Paint shadow using resource-scaled texture

https://bugzilla.gnome.org/show_bug.cgi?id=765011

7 years agost-private: Scale shadows accordingly to actor resource scaling
Marco Trevisan (Treviño) [Sat, 2 Sep 2017 02:08:55 +0000 (04:08 +0200)]
st-private: Scale shadows accordingly to actor resource scaling

Use scaled offscreen framebuffer to paint shadows so that it will match the
scaling applied to the actual actor.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5
https://bugzilla.gnome.org/show_bug.cgi?id=765011

7 years agost-drawing-area: Draw content taking care of the resource_scale
Marco Trevisan (Treviño) [Mon, 31 Jul 2017 12:08:29 +0000 (14:08 +0200)]
st-drawing-area: Draw content taking care of the resource_scale

https://bugzilla.gnome.org/show_bug.cgi?id=765011

7 years agost-widget: Introduce widget resource scale
Jonas Ådahl [Thu, 11 May 2017 04:30:04 +0000 (06:30 +0200)]
st-widget: Introduce widget resource scale

This commit makes StWidget manage the scale of which its associated
resources should be multiplied with. The resource scale is calculated
by clutter, and is retrieved by clutter_actor_get_resource_scale(). Due
to the resource scale not always being available, the getter may fail,
and the actual widget that draws the content will have to deal with
this situation.

As the resource scale depends on where on the stage the widget is drawn,
the resource scale will in general be available once the widget is
mapped.

https://bugzilla.gnome.org/show_bug.cgi?id=765011

7 years agoUpdate Indonesian translation
Kukuh Syafaat [Fri, 1 Mar 2019 15:32:29 +0000 (15:32 +0000)]
Update Indonesian translation

7 years agoUpdated Danish translation
Ask Hjorth Larsen [Thu, 28 Feb 2019 22:09:39 +0000 (23:09 +0100)]
Updated Danish translation

7 years agogvc: Update submodule to up-to-date version
Robert Mader [Thu, 28 Feb 2019 20:51:41 +0000 (21:51 +0100)]
gvc: Update submodule to up-to-date version

This frees us from all remaining '‘g_type_class_add_private’ is deprecated'
warnings.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/427

7 years agobuild: Bump gjs requirement
Florian Müllner [Thu, 28 Feb 2019 18:35:01 +0000 (19:35 +0100)]
build: Bump gjs requirement

While we don't actually require a more recent version at build time,
we do need the latest stable version at runtime. There's no strong
reason for making that differentiation, so bump the requirement.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1006

7 years agolookingGlass: Use symbolic icon for close button
Marco Trevisan (Treviño) [Thu, 28 Feb 2019 15:20:47 +0000 (16:20 +0100)]
lookingGlass: Use symbolic icon for close button

As per commit 4d2dce2c, the actual close button is generated using custom css
and a symbolic icon.

Apply the same change to lookingGlass too.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/425

7 years agoUpdate Serbian translation
Марко Костић [Thu, 28 Feb 2019 13:26:19 +0000 (13:26 +0000)]
Update Serbian translation

7 years agoUpdate Italian translation
Milo Casagrande [Thu, 28 Feb 2019 08:14:02 +0000 (08:14 +0000)]
Update Italian translation

7 years agoUpdate French translation
Julien Humbert [Thu, 28 Feb 2019 07:39:24 +0000 (07:39 +0000)]
Update French translation

7 years agoUpdate Korean translation
Changwoo Ryu [Thu, 28 Feb 2019 03:16:35 +0000 (03:16 +0000)]
Update Korean translation

7 years agona-tray-manager: Use gdk_screen_get_default() and gdk_x11_get_default_screen()
Robert Mader [Tue, 26 Feb 2019 20:06:20 +0000 (21:06 +0100)]
na-tray-manager: Use gdk_screen_get_default() and gdk_x11_get_default_screen()

instead of explicit screen arguments and `gdk_screen_get_number()`, as nowadays there
is always only one screen. This silences some deprecation warnings and removes
deprecated API.

Bonus: some code style cleanups

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/422

7 years agoci: Use custom image for JS checks
Florian Müllner [Wed, 13 Feb 2019 04:49:37 +0000 (05:49 +0100)]
ci: Use custom image for JS checks

Running dnf to update and install additional packages every time
the job is executed slows down the CI pipeline. Avoid this by
using another custom images for JS source checks.

In addition to the js shell we use for the existing syntax check,
also include eslint for future jobs and some extension-specific
tooling to make the image more useful to extension authors.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/408

7 years agoci: Check that pot file is generated correctly
Florian Müllner [Sat, 9 Feb 2019 03:51:00 +0000 (04:51 +0100)]
ci: Check that pot file is generated correctly

This is to guard against the now infamous xgettext bug[0].

[0] https://savannah.gnu.org/bugs/?50920#comment5

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/408

7 years agoci: Add test stage
Florian Müllner [Tue, 12 Feb 2019 21:39:47 +0000 (22:39 +0100)]
ci: Add test stage

We never gained a proper test suite, but run at least the tests we
have.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/408

7 years agoci: Add build stage
Florian Müllner [Tue, 12 Feb 2019 16:53:42 +0000 (17:53 +0100)]
ci: Add build stage

So far we are only performing a basic syntax check on javascript
sources; it's time to test the C code as well. As mutter is tightly
coupled, we bite the bullet and build it as well, either using a
matching branch (if it exists), or current master.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/408

7 years agoci: Skip source_check stage when appropriate
Florian Müllner [Tue, 12 Feb 2019 19:17:07 +0000 (20:17 +0100)]
ci: Skip source_check stage when appropriate

We don't have to run the static analyzer on javascript sources when
no javascript source was changed.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/408

7 years agoci: Sync check-commit-log script with mutter
Florian Müllner [Sat, 16 Feb 2019 16:44:27 +0000 (17:44 +0100)]
ci: Sync check-commit-log script with mutter

A couple of cleanups came out from the review in mutter, catch
up with those.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/408

7 years agoaggregateLayout: Fix natural width computation
Florian Müllner [Mon, 25 Feb 2019 22:31:45 +0000 (23:31 +0100)]
aggregateLayout: Fix natural width computation

Ouch, this went unnoticed for a long time: As the minimum size of menu
items is generally small (because its label can be ellipsized), we are
requesting the unellipsized width of the last "size child" instead of
the widest one.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/996

7 years agotest-theme: Stop using ClutterCairoTexture
Florian Müllner [Tue, 26 Feb 2019 02:00:05 +0000 (03:00 +0100)]
test-theme: Stop using ClutterCairoTexture

It's deprecated, so use one of our own types for testing type
inheritance.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/420

7 years agona-tray-child: Silence some deprecation warnings
Robert Mader [Mon, 25 Feb 2019 15:03:14 +0000 (16:03 +0100)]
na-tray-child: Silence some deprecation warnings

Use `gdk_x11_display_error_trap_...` instead of `gdk_error_trap_...`

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/417

7 years agoshell-tray-icon: Silence some deprecation warnings
Robert Mader [Mon, 25 Feb 2019 15:01:57 +0000 (16:01 +0100)]
shell-tray-icon: Silence some deprecation warnings

Use `gdk_x11_display_error_trap_...` instead of `gdk_error_trap_...`

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/417

7 years agost-clipboard: Remove get/set_property functions.
Andrea Azzarone [Fri, 22 Feb 2019 13:36:27 +0000 (14:36 +0100)]
st-clipboard: Remove get/set_property functions.

Remove st_clipboard_get_property and st_clipboard_set_property because they are
identical to the default implementation.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/414

7 years agotheme: Add bottom padding for sub menus
Alex Monday [Sat, 23 Feb 2019 22:46:03 +0000 (03:46 +0500)]
theme: Add bottom padding for sub menus

Prevents overlapping sub menu borders with menu item background.

Closes https://gitlab.gnome.org/GNOME/gnome-shell/issues/987

7 years agoUpdate Russian translation
Stas Solovey [Sun, 24 Feb 2019 20:48:43 +0000 (20:48 +0000)]
Update Russian translation

7 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sat, 23 Feb 2019 20:43:56 +0000 (20:43 +0000)]
Update Basque translation

7 years agoUpdate Esperanto translation
Carmen Bianca BAKKER [Sat, 23 Feb 2019 09:23:49 +0000 (09:23 +0000)]
Update Esperanto translation

7 years agoBump version to 3.31.91
Florian Müllner [Thu, 21 Feb 2019 18:58:25 +0000 (19:58 +0100)]
Bump version to 3.31.91

Update NEWS.

7 years agoUpdate Icelandic translation
Sveinn í Felli [Thu, 21 Feb 2019 11:19:54 +0000 (11:19 +0000)]
Update Icelandic translation

(cherry picked from commit bfcfa64456b2b61cfa54fee9f006880b41aa9603)

7 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Thu, 21 Feb 2019 01:06:52 +0000 (01:06 +0000)]
Update Brazilian Portuguese translation

7 years agoshellDBus: Add grabFlags parameter
Andrea Azzarone [Wed, 18 Jul 2018 18:26:44 +0000 (20:26 +0200)]
shellDBus: Add grabFlags parameter

Add an grabFlags parameter to the GrabAccelerator and GrabAccelerators dbus
methods. This will allow e.g. Gnome Settings Daemon to create shortcuts that
should discard key-repeated events.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/156

Fixes: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/68
7 years agoUpdated Danish translation
Alan Mortensen [Sat, 16 Feb 2019 19:56:32 +0000 (20:56 +0100)]
Updated Danish translation

7 years agoUpdate Kazakh translation
Baurzhan Muftakhidinov [Sat, 16 Feb 2019 10:54:56 +0000 (10:54 +0000)]
Update Kazakh translation

7 years agoUpdate Scottish Gaelic translation
Gun Chleoc [Sat, 16 Feb 2019 09:34:08 +0000 (09:34 +0000)]
Update Scottish Gaelic translation

(cherry picked from commit ea3d897439366ec75d5b399ec7b421bda5682ff5)

7 years agoctrlAltTab: Fix more fallout from ES6 classes
Florian Müllner [Fri, 15 Feb 2019 16:15:04 +0000 (17:15 +0100)]
ctrlAltTab: Fix more fallout from ES6 classes

Since ShellGenericContainer was removed, switcher popups and lists
are StWidget subclasses rather than plain JS classes.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/411

7 years agoUpdate Indonesian translation
Kukuh Syafaat [Thu, 14 Feb 2019 15:19:05 +0000 (15:19 +0000)]
Update Indonesian translation

7 years agoUpdate Scottish Gaelic translation
Gun Chleoc [Thu, 14 Feb 2019 09:03:50 +0000 (09:03 +0000)]
Update Scottish Gaelic translation

(cherry picked from commit 5979f872957a7c0588ac6c8b3f96b2f999047763)

7 years agogitlab-ci.yml: Add check for issue or MR URL
Jonas Ådahl [Wed, 13 Feb 2019 19:34:07 +0000 (20:34 +0100)]
gitlab-ci.yml: Add check for issue or MR URL

This adds a pipeline stage for merge requests that checks that the
commit message contains an URL to either a issue or a merge request.
This means that for merge requests without corresponding issues will
always fail initially, as the merge request URL is not known until after
it is created. This is still arguably better than accidentally merging
merge requests without URLs.

Taken from https://gitlab.gnome.org/GNOME/mutter/merge_requests/440.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/410

7 years agoREADME.md: Add contribution section
Jonas Ådahl [Wed, 13 Feb 2019 19:30:21 +0000 (20:30 +0100)]
README.md: Add contribution section

Include a link to where to create merge requests, and describe the
requirements regarding commit messages which we are about to enforce.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/410

7 years agocalendar: Load interface description from resource
Florian Müllner [Tue, 12 Feb 2019 18:40:13 +0000 (19:40 +0100)]
calendar: Load interface description from resource

Here's a template string with '/' that escaped commit 94423151b2,
resulting in an xgettext warning when generating the .pot file.

Simply move it into the resource like the other interface descriptions
to make xgettext happy again.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/407

7 years agoAdd a Taquin renamed desktop id.
Arnaud Bonatti [Wed, 13 Feb 2019 12:23:47 +0000 (13:23 +0100)]
Add a Taquin renamed desktop id.

Taquin is org.gnome.Taquin.

7 years agoAdd the 2048 renamed desktop id.
Arnaud Bonatti [Wed, 13 Feb 2019 12:17:54 +0000 (13:17 +0100)]
Add the 2048 renamed desktop id.

gnome-2048 id is now set to
org.gnome.TwentyFortyEight.